package cn.daniellee.plugin.wc.command;

import cn.daniellee.plugin.wc.core.WelcomeCore;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.command.TabCompleter;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class WelcomeCompleter implements TabCompleter {

	@Override
	public List<String> onTabComplete(CommandSender commandSender, Command command, String s, String[] strings) {
		if (strings.length == 0) return Collections.list(WelcomeCore.newPlayerCache.keys());
		return new ArrayList<>();
	}

}
